//
//  DALoginModel.m
//  DAKnowledge
//
//  Created by DreamArts on 16/5/13.
//  Copyright © 2016年 lidongyang. All rights reserved.
//

#import "DALoginModel.h"
#import "MJExtension.h"
@implementation DALoginModel
/** 一键归档 解档*/
MJExtensionCodingImplementation

- (void)dataTransformModelWith:(NSDictionary *)dic{
    [DALoginModel mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"ID": @"id"};
    }];
    DALoginModel *login  = [DALoginModel mj_objectWithKeyValues:dic];
    /** 根据路径存到本地*/
    NSString *file = [NSHomeDirectory()stringByAppendingPathComponent:@"DALogin"];
    [NSKeyedArchiver archiveRootObject:login toFile:file];
    
}

@end
